package com.ruoyi.orders.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 orders
 * 
 * @author admin
 * @date 2025-05-20
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 分类id */
    @Excel(name = "分类id")
    private Long typeId;

    /** 具体项目id,例如分类为商品则为商品id */
    @Excel(name = "具体项目id,例如分类为商品则为商品id")
    private Long projectId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String name;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private BigDecimal account;

    /** 多个商品id */
    @Excel(name = "多个商品id")
    private String multiple;

    /** 订单状态:0未支付1已付款 */
    @Excel(name = "订单状态:0未支付1已付款")
    private Long status;
    /** 订单状态:0未支付1已付款 */
    @Excel(name = "订单处理状态:0未处理1处理")
    private Long payStatus;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateUser;

    private SysUser user;

    public Long getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Long payStatus) {
        this.payStatus = payStatus;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }

    public void setAccount(BigDecimal account) 
    {
        this.account = account;
    }

    public BigDecimal getAccount() 
    {
        return account;
    }

    public void setMultiple(String multiple) 
    {
        this.multiple = multiple;
    }

    public String getMultiple() 
    {
        return multiple;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("projectId", getProjectId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("originalPrice", getOriginalPrice())
            .append("account", getAccount())
            .append("multiple", getMultiple())
            .append("status", getStatus())
            .append("payTime", getPayTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
                .append("payStatus", getPayStatus())
                .append("sysUser",getUser())
            .toString();
    }
}
